package per.poker;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import lombok.extern.slf4j.Slf4j;
import per.poker.common.CommonService;

/**
 * @author ：yunjia
 * @date ：2023/7/10 15:53
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Slf4j
public class MainController {

    public Button chedapao;
    public Button chouwangba;
    public Button chudadi;
    public Button gonghua;

    @FXML
    public void initialize() {
        chedapao.setOnMouseClicked(e -> CommonService.jumpButtonEvent(chedapao, "chedapao"));
        chouwangba.setOnMouseClicked(e -> CommonService.jumpButtonEvent(chedapao, "chouwangba"));
        chudadi.setOnMouseClicked(e -> CommonService.jumpButtonEvent(chedapao, "chudadi"));
        gonghua.setOnMouseClicked(e -> CommonService.jumpButtonEvent(chedapao, "gonghua"));
    }
}
